/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2022-11-06
 * Time: 13:50
 */
public class Test {
    public static void main(String[] args) {
        int year = 2000;
        if(year % 100 == 0){
            //世纪闰年
            if((year % 400) == 0){
                System.out.println(year + "是闰年");
            }else{
                System.out.println(year + "不是闰年");
            }
        }else{
            //普通闰年
            if(year % 4 == 0){
                System.out.println(year + "是闰年");
            }else{
                System.out.println(year + "不是闰年");
            }
        }
    }



    public static void main8(String[] args) {
        int a = 10;
        if(a > 0) {
            System.out.println("正数");
        }else if(a < 0) {
            System.out.println("负数");
        }else {
            System.out.println("零");
        }
    }

    public static void main7(String[] args) {
        int num = 20;
        if(num % 2 == 0){
            System.out.println("偶数");
        }else{

        }
    }


    public static void main6(String[] args) {
        int score = 0;
        if(score >=90 && score <=100){
            System.out.println("优秀");
        }else if(score >= 80 && score < 90){
            System.out.println("良好");
        }else if(score >= 70 && score <80){
            System.out.println("中等");
        }else if(score >= 60 && score < 70){
            System.out.println("及格");
        }else if(score >= 50 && score <60) {
            System.out.println("不及格");
        }else{
            System.out.println("错误数据");
        }
    }

    public static void main5(String[] args) {
        int a = 10;
        if(a == 10){
            System.out.println("a == 10");
        }else{
            System.out.println("a != 10");
        }

        int b = 10;
        if(b == 10){
            System.out.println("b == 10");
        }
        System.out.println("b != 10");
    }
    public static void main4(String[] args) {
        int score = 90;
        if(score >= 90){
            System.out.println("优秀");
        }
    }

    public static void main3(String[] args) {
        System.out.println(1);
        System.out.println(456);
        System.out.println(2);
    }

    public static void main2(String[] args) {
        int a = 10;
        int b = 20;
//        int c = a > b? 1 : 2.0;
        byte c = (byte)128;
    }


    public static void main1(String[] args) {
        System.out.println(true == true?true==true?false:true:true);

    }
}

